<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<body>
<!---------------- 用户详情 ------------------->
<!-- 页头 -->
{include file="common/page/header"}
<!-- jsfiles -->
{include file="common/page/jsfiles"}
<!-- 主体 -->
<div class="content container-fluid{if $leftBarScale eq '1'} scale{/if}">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}
        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3><i class="icon iconfont">{$Think.session.currentMenu.icon}</i>用户详情
            <div class="operation-div">
<!--                <a href="editMember?id={$Think.get.id}" class="btn btn-success">修改信息</a>-->
            </div></h3>
            <div class="inner-section row">
                <div class="items add-div">
                    <form id="myForm" action="#" method="post" enctype="multipart/form-data">
                        <div class="item table-responsive">
                            <table class="table table-striped table-hover table-bordered table-base">
                                <tbody>
                                <tr>
                                    <td>头像<label class="must-tag">&nbsp;&nbsp;</label></td>
                                    <td>
                                        {if $memberInfo.head_img_url}
                                        <img height="60" src="{$memberInfo.head_img_url}">
                                        {else}
                                        无头像
                                        {/if}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>相册</td>
                                    <td>
                                        {if $memberInfo.user_img}
                                        <img onclick="showUserImg(this)" data-imgs="{$memberInfo.photo_list}" height="90" src="{$memberInfo.user_img}">
                                        {else}
                                        无相册
                                        {/if}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>昵称<label class="must-tag">&nbsp;&nbsp;</label></td>
                                    <td>
                                        {$memberInfo.nick_name}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>身份ID</td>
                                    <td>
                                        {$memberInfo.identity_id}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>姓名</td>
                                    <td>
                                        {$memberInfo.username}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>电话</td>
                                    <td>
                                        {$memberInfo.mobile}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>性别</td>
                                    <td>
                                        {$memberInfo.sex}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>年龄</td>
                                    <td>
                                        {$memberInfo.age}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>生日</td>
                                    <td>
                                        {$memberInfo.birthday}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>收入</td>
                                    <td>
                                        {$memberInfo.income}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>地址</td>
                                    <td>
                                        {$memberInfo.address}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>学历</td>
                                    <td>
                                        {$memberInfo.educate}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>婚姻</td>
                                    <td>
                                        {$memberInfo.marriage}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>身高</td>
                                    <td>
                                        {$memberInfo.height}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>体重</td>
                                    <td>
                                        {$memberInfo.weight}
                                    </td>
                                    <td></td>
                                </tr>

                                <tr>
                                    <td>职业</td>
                                    <td>
                                        {$memberInfo.job}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>有无孩子</td>
                                    <td>
                                        {if $memberInfo.is_children == 0}无{/if}
                                        {if $memberInfo.is_children == 1}有{/if}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>想要孩子</td>
                                    <td>
                                        {if $memberInfo.want_children == 0}不想{/if}
                                        {if $memberInfo.want_children == 1}想{/if}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>恋爱宣言</td>
                                    <td>
                                        {$memberInfo.love_content}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>择偶条件</td>
                                    <td>
                                        {$memberInfo.choose_spouse}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>兴趣爱好</td>
                                    <td>
                                        {$memberInfo.hobby}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>添加时间<label class="must-tag">&nbsp;&nbsp;</label></td>
                                    <td>
                                        {$memberInfo.add_time}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        <input type="hidden" name="id" value="{$memberInfo.id}">
                                        <a href="javascript:window.history.go(-1);" class="btn btn-default">返回</a>
                                    </td>
                                    <td></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 页脚 -->
{include file="common/page/footer"}
<script>
    var root_url = $('#root_url').val();
    // 照片墙
    function showUserImg(obj) {
        let imgs = $(obj).attr('data-imgs')
        let items = []
        let src = $(obj).attr('src');
        if (imgs == '') {
            items.push({src:src})
        } else {
            imgs = imgs.split(',')
            for (const k in imgs) {
                if (typeof imgs[k] != 'string') {
                    continue;
                }
                items.push({src:root_url+'/'+imgs[k]})
            }
        }
        layer.photos({
            photos: {"data": items},
            shade: .5,
            anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机
        });
    }
</script>
</body>
</html>